package cn.tedu.yl.role.mapper;

import cn.tedu.yl.role.pojo.dto.RoleListQuery;
import cn.tedu.yl.role.pojo.entity.Role;
import cn.tedu.yl.role.pojo.vo.RoleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {

    List<RoleVO> selectList(RoleListQuery roleListQuery);

    int selectListCount(RoleListQuery roleListQuery);

    void insert(Role role);

    void update(Role role);

    void delete(@Param("ids") List<Integer> ids);

    RoleVO selectDetailById(Integer id);
}
